package cn.iocoder.yudao.framework.business.category.pojo.vo;

import cn.iocoder.yudao.framework.business.basic.pojo.vo.BaseVO;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

@Tag(name = "类目 Response VO")
@Data
public class CategoryVO extends BaseVO {
    public static final CategoryVO EMPTY = new CategoryVO();

    static {
        EMPTY.setId(0L);
        EMPTY.setCode("");
        EMPTY.setName("未知");
    }

    @Schema(description = "上级编号", example = "15294")
    private Long parentId;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "测试")
    private String name;

    @Schema(description = "编码", example = "test")
    private String code;

    @Schema(description = "图标", example = "https://example.local")
    private String iconUrl;

    @Schema(description = "状态：0-启用、1-关闭", example = "1")
    private Integer status;

    @Schema(description = "排序")
    private Integer sort;

}
